#ifndef __SCOPED_RECURSIVE_MUTEX_HPP__
#define __SCOPED_RECURSIVE_MUTEX_HPP__

#include "recursive_mutex.hpp"

namespace vpm 
{
	namespace utils 
	{

		class ScopedRecursiveMutex
		{
		public:
			ScopedRecursiveMutex(RecursiveMutex & mutex):m_mutex(mutex)
			{
				m_mutex.lock(); 
			}
			~ScopedRecursiveMutex()
			{
				m_mutex.unlock(); 
			}

			RecursiveMutex & m_mutex; 
		};


	}
}
#endif // __SCOPED_RECURSIVE_MUTEX_HPP__
 

 


